postStt = function(strDefault) {
	var strContent = $('#pcontent').val();
	var strContent = stripTags(strContent,0);
	if(strContent == '' || strContent.toLowerCase() == strDefault.toLowerCase()) {
		alert(stt_content_required);
		return false;
	}
	return true;
}
postReply = function(strDefault, intId, intLs) {
	var strValue = $('#pcontent'+intId).val();
	if(strValue.toLowerCase() == strDefault.toLowerCase() || strValue == '') {
		alert(stt_content_reply_required);		
	} else {
		strValue = encodeURIComponent(strValue);
		$.getJSON(				
			HOST_VFRIEND + 'comment/ubcmtsend?content='+strValue+'&ublastid='+intId+'&ls='+intLs+'&callback=?',		
			function(response) {					
				if(response['error'] == 0) {						
					showUIMessage(response['msg']);
					if(intLs == 1)
						$('#subContent'+intId).show().html(response['data']);					
					else if(intLs == 2)
						$('#subContent').show().html(response['data']);	
					
					$('#pcontent'+intId).val(strDefault);
					if($.browser.msie) {
						$('#pcontent'+intId).css("min-height","22px");
						$('#pcontent'+intId).css("height","22px");
					} else {
						$('#pcontent'+intId).css("min-height","18px");
						$('#pcontent'+intId).css("height","18px");
					}
					$('#pcontent'+intId).css("color","#999");
					$('#uBlastCmt'+intId).html(response['total']);
				} else {
					alert(response['msg']);
				}
			}
		);
	} 
	return false;
}
function likeUblast(intUblastId) {	
	$.getJSON(				
		HOST_VFRIEND + 'comment/ubcmtsend?act=3&ublastid='+intUblastId+'&callback=?',		
		function(response) {					
			if(response['error'] == 0) {						
				showUIMessage(response['msg']);
				$('#uBlastLike' + intUblastId).html(response['like']);
			} else {
				alert(response['msg']);
			}
		}
	);
}
function deleteUblast(intUblastId,intPage,intLs) {
	if(confirm(confirm_delete_ublast) == true) {		
		$.getJSON(				
			HOST_VFRIEND + 'comment/ubcmtsend?act=4&ublastid='+intUblastId+'&page='+intPage+'&ls='+intLs+'&callback=?',		
			function(response) {					
				if(response['error'] == 0) {						
					showUIMessage(response['msg']);
					if(intLs == 1) {
						$('#fhStatus').html(response['data']);	
					} else {
						showUIMessage(response['msg']);
						document.location.href = response['link'];
					}
				} else {
					alert(response['msg']);
				}
			}
		);
	} 
}
function deleteCmt(intUblastId, intVal,intPage, intLs) {	
	if(confirm(confirm_delete_cmt) == true) {		
		$.getJSON(				
			HOST_VFRIEND + 'comment/ubcmtsend?act=1&ublastid='+intUblastId+'&ubcommentid='+intVal+'&page='+intPage+'&ls='+intLs+'&callback=?',		
			function(response) {					
				if(response['error'] == 0) {						
					showUIMessage(response['msg']);
					if(intLs == 1) {
						$('#subContent'+intUblastId).html(response['data']);	
					} else {						
						$('#subContent').html(response['data']);	
					}
				} else {
					alert(response['msg']);
				}
			}
		);
	} 
}
function likeCmt(intUblastId, intVal, intPage) {	
	$.getJSON(				
		HOST_VFRIEND + 'comment/ubcmtsend?act=2&ublastid='+intUblastId+'&ubcommentid='+intVal+'&page='+intPage+'&callback=?',		
		function(response) {					
			if(response['error'] == 0) {						
				showUIMessage(response['msg']);
				$('#uBlastCmtLike' + intVal).html(response['like']);
			} else {
				alert(response['msg']);
			}
		}
	);
}
onMouseOverForGift = function(intId) {	
	$('#shUgift' + intId).show();
}
onMouseOutForGift = function(intId) {
	$('#shUgift' + intId).hide();
}
onMouseOverForUblast = function(intId) {
	$('#uBlast' + intId).show();
}
onMouseOutForUblast = function(intId) {
	$('#uBlast' + intId).hide();
}
onMouseOverForUbcomment = function(intId) {	
	$('#uBlastCmt' + intId).show();
}
onMouseOutForUbcomment = function(intId) {
	$('#uBlastCmt' + intId).hide();
}